package com.test.jdk8.demo1;

/**
 * @ClassName DefaultInterfaceImpl
 * @Description TODO
 * @Author 维康
 * @Date 2018/7/9 18:46
 * @Version 1.0
 **/
public class DefaultInterfaceImpl implements DefaultInterface {
    @Override
    public int sub(int a, int b) {
        return a+b;
    }

    public static void main(String[] args){
       new DefaultInterfaceImpl().test();
    }

    private void test() {
        this.defaultMethod();
        DefaultInterface.staticMethod();
        System.out.println(DefaultInterface.a);
    }

}
